package com.htjc.integral;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ImportResource;
import org.springframework.web.client.RestTemplate;

//打war包
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 启动类
 * 
 * @author zjj ˙ 2018.6.4 ,exclude = { DataSourceAutoConfiguration.class,
 *         JpaRepositoriesAutoConfiguration.class,
 *         HibernateJpaAutoConfiguration.class }
 */
@SpringBootApplication
@ImportResource(locations= {"classpath:spring-db.xml"})
public class InteractionOuterApplication 
//							extends  SpringBootServletInitializer 
{
	//打war包
/*	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(InteractionOuterApplication.class);
	}*/
	
	public static void main(String[] args) {
		SpringApplication.run(InteractionOuterApplication.class, args);
	}

	@Bean
	RestTemplate restTemplate() {
		return new RestTemplate();
	}

}
